﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DddCms.Presentation.Areas.DddCms.Models.UIComponent.Tooltip
{
    public class TooltipViewModelBuilder
    {
        public TooltipViewModel tooltipViewModel { get; set; }

        public TooltipViewModelBuilder()
        {
            tooltipViewModel = new TooltipViewModel();
        }
        
        public TooltipViewModel Build()
        {
            return tooltipViewModel;
        }

        public TooltipViewModelBuilder Content(MvcHtmlString mvcHtmlString)
        {
            tooltipViewModel.Content = mvcHtmlString;
            return this;
        }

        public TooltipViewModelBuilder Title(string p)
        {
            tooltipViewModel.Title = p;
            return this;
        }

        public TooltipViewModelBuilder Message(string p)
        {
            tooltipViewModel.Message = p;
            return this;
        }

        public TooltipViewModelBuilder Position(TooltipPosition position)
        {
            tooltipViewModel.Position = position;
            return this;
        }
         
        public TooltipViewModelBuilder WindowStyle(string p)
        {
            tooltipViewModel.WindowStyle = p;
            return this;
        }
    }
}